home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
SOUND
/
QTMPLAY2.ARC
/
!QTMPlay
/
!BootImage
(
.txt
)
< prev
next >
Wrap
RISC OS BBC BASIC V Source
|
1997-04-07
|
3KB
|
113 lines
> <QTMPlay$Dir>.!BootImage
Chris Rutter, 1996
0,"There was a problem when trying to boot QTMPlay ("+
$+", internal error code "+
)+")"
"OS_GetEnv"
tail$
tail$,"-nosprites")
nosprites%=
nosprites%=
tail$,"-checkloaded")
check_loaded
tail$,"-killwimplib")
killwimplib%=
killwimplib%=
tail$,"-choices")
setup_choices
tail$,"-end")
debug%=
block% 1024
module% 32*1024
off%=0
debug%
" nosprites="+
(nosprites%)
killwimplib%
"XOS_CLI","RMKill WimpLibrary"
"XOS_CLI","Set File$Type_000 STracker"
"XOS_CLI","Set File$Type_001 STracker"
"XOS_CLI","Set File$Type_130 Carousel"
"XOS_CLI","Set File$Type_CC5 TeqMusic"
"XOS_CLI","Set File$Type_CB6 STModule"
"XOS_CLI","DosMap MOD CB6"
"XOS_CLI","DosMap S3M FFD"
"OS_GBPB",10,"<QTMPlay$Dir>.Formats",block%,1,off%,256,"*"
,,,,off%
off%<>-1
block%!16=2
!3 path$="<QTMPlay$Dir>.Formats."+
ct(block%+20)
debug%
"Module "+path$+"..."
"OS_File",5,path$+".Code"
exist%,,,,size%
exist%=1
size%<32*1024
%#
debug%
" size="+
(size%)
&-
"OS_File",255,path$+".Code",module%
set_aliases
(%
nosprites%
load_sprites
off%=-1
ct(address%)
string$
?address%>31
string$+=
(?address%)
address%+=1
=string$
set_aliases
base%
base%=module%+module%!20
base%>module%
base%<module%+size%
!base%<>-1
debug%
" filetype "+
~(!base%)
("Set Alias$@RunType_"+
~(!base%))+" Run <QTMPlay$Dir>.!Run QTMfile:")
base%+=4
load_sprites
"XOS_CLI","IconSprites "+path$+"."+
ct(module%+module%!16)
t(string$)
(string$)<3
string$="0"+string$
=string$
check_loaded
call%,loaded%
0,"While trying to check whether QTMPlay was loaded, the following error occurred: "+
$+" (internal error code "+
)+")"
buffer% 16
"TaskManager_EnumerateTasks",call%,buffer%,16
call%
ct(buffer%!4)="QTMPlay"
loaded%=
call%<0
loaded%
"Set QTMPlay$Loaded True"
"Set QTMPlay$Loaded False"
setup_choices
"OS_CLI","Set QTMPlay$Choices <QTMPlay$Dir>.Choices"
"OS_CLI","If ""<Choices$Write>"" <> """" Then Set QTMPlay$Choices <Choices$Write>.QTMPlay.Choices"
"XOS_File",5,"<Choices$Write>.QTMPlay"
type%;flags%
(flags%
1<<28)
type%=0
type%=1
move Choices.QTMPlay into Choices.QTMPlay.Choices
"OS_FSControl",25,"<Choices$Write>.QTMPlay","<Choices$Write>.QTMPlayT"
"OS_File",8,"<Choices$Write>.QTMPlay"
"OS_FSControl",25,"<Choices$Write>.QTMPlayT","<Choices$Write>.QTMPlay.Choices"
type%=0
"OS_File",8,"<Choices$Write>.QTMPlay"